How to Unzip Files Without Changing LastModifiedDate 您所在的位置:网站首页 unzip -o -d语法错误 How to Unzip Files Without Changing LastModifiedDate

How to Unzip Files Without Changing LastModifiedDate

2023-06-07 04:37| 来源: 网络整理| 查看: 265

By default, when unzipping files using Azure Data Factory, the LastModifiedDate of the files will be updated to the current date. However, if you want to preserve the original LastModifiedDate of the files, you can follow these steps:

Create a pipeline in Azure Data Factory.

Add a Copy Data activity to the pipeline.

Configure the Source dataset of the Copy Data activity to point to the zipped folder. Set the Import Schema to "None" and specify the compression type as "ZipDeflate".

Configure the Sink dataset of the Copy Data activity to specify the destination folder where the files will be extracted. Set the Import Schema to "None".

Expand the Mapping settings of the Copy Data activity.

In the Mapping section, ensure that all the required files (A.csv, B.csv, C.csv) are included in the mapping configuration.

Click on the "Settings" tab in the Copy Data activity.

In the "Sink" section, under "Additional settings", add a new property with the name "preserveHierarchy" and set its value to "true". This property ensures that the folder hierarchy is maintained during the extraction process.

Save and publish the pipeline.

When you run the pipeline, the files will be extracted from the zipped folder, and the LastModifiedDate of each file will be preserved, reflecting the original LastModifiedDate from the zipped file.

By using the "preserveHierarchy" property and setting its value to "true", Azure Data Factory will maintain the folder structure and preserve the original LastModifiedDate of the files during the extraction process.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有